package com.ruiysoft.entity.order;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author WenJialu
 * @since 2018-10-28
 */
@TableName("order_refund_detail")
public class OrderRefundDetail extends Model<OrderRefundDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_refund_id")
    private Long orderRefundId;

    @TableField("refund_no")
    private String refundNo;

    @TableField("sku_id")
    private Long skuId;

    private Integer quantity;

    @TableField("unit_price")
    private Long unitPrice;

    @TableField("pay_amount")
    private Long payAmount;

    @TableField("refund_amount")
    private Long refundAmount;

    public Long getId() {
        return id;
    }

    public OrderRefundDetail setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getOrderRefundId() {
        return orderRefundId;
    }

    public OrderRefundDetail setOrderRefundId(Long orderRefundId) {
        this.orderRefundId = orderRefundId;
        return this;
    }
    public String getRefundNo() {
        return refundNo;
    }

    public OrderRefundDetail setRefundNo(String refundNo) {
        this.refundNo = refundNo;
        return this;
    }
    public Long getSkuId() {
        return skuId;
    }

    public OrderRefundDetail setSkuId(Long skuId) {
        this.skuId = skuId;
        return this;
    }
    public Integer getQuantity() {
        return quantity;
    }

    public OrderRefundDetail setQuantity(Integer quantity) {
        this.quantity = quantity;
        return this;
    }
    public Long getUnitPrice() {
        return unitPrice;
    }

    public OrderRefundDetail setUnitPrice(Long unitPrice) {
        this.unitPrice = unitPrice;
        return this;
    }
    public Long getPayAmount() {
        return payAmount;
    }

    public OrderRefundDetail setPayAmount(Long payAmount) {
        this.payAmount = payAmount;
        return this;
    }
    public Long getRefundAmount() {
        return refundAmount;
    }

    public OrderRefundDetail setRefundAmount(Long refundAmount) {
        this.refundAmount = refundAmount;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderRefundDetail{" +
        "id=" + id +
        ", orderRefundId=" + orderRefundId +
        ", refundNo=" + refundNo +
        ", skuId=" + skuId +
        ", quantity=" + quantity +
        ", unitPrice=" + unitPrice +
        ", payAmount=" + payAmount +
        ", refundAmount=" + refundAmount +
        "}";
    }
}
